Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not retry failing requests with status code 401 #408

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

Hodnebo
Copy link
Contributor

@Hodnebo Hodnebo commented Jul 3, 2024

Description

Adds another check to should_retry() for requests resulting in status code 401.

Very similar to #373, but happens when token is malformed, rather than being expired/invalid.

Fixes #407

@kravets-levko
Copy link
Contributor

Hi @Hodnebo! Thank you for this fix! Can you please resolve conflicts so I can merge it?

- Raises NonRecoverableNetworkError when request results in 401 status code

Signed-off-by: Tor Hødnebø <[email protected]>
Signed-off-by: Tor Hødnebø <[email protected]>
@Hodnebo Hodnebo force-pushed the do-not-retry-401 branch from 37a1a15 to 2dd2e99 Compare July 3, 2024 09:56
@Hodnebo Hodnebo force-pushed the do-not-retry-401 branch from 1a0d727 to cff5fcd Compare July 3, 2024 10:06
@Hodnebo
Copy link
Contributor Author

Hodnebo commented Jul 3, 2024

Hi @Hodnebo! Thank you for this fix! Can you please resolve conflicts so I can merge it?

Thanks for the quick review, it should hopefully be in order now

@kravets-levko kravets-levko merged commit 5d869d0 into databricks:main Jul 3, 2024
11 checks passed
@kravets-levko
Copy link
Contributor

Thank you @Hodnebo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bad token is being retried in databricks.sql.connect
2 participants